//
//  AddCustomerController.h
//  prob
//
//  Created by liu ming on 11-6-21.
//  Copyright 2011 peixin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Customer.h"

@protocol AddCustomerControllerDelegate;

@interface AddCustomerController : UIViewController {
	Customer *cust;
	id <AddCustomerControllerDelegate> delegate;
	IBOutlet UIBarButtonItem *cancelbutton;
	IBOutlet UIBarButtonItem *savebutton;
	IBOutlet UITextField *newname;
	IBOutlet UITextField *newemailid;
	IBOutlet UITextField *newcontactno;
}

@property (nonatomic, retain) Customer *cust;
@property (nonatomic, retain) id <AddCustomerControllerDelegate> delegate;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *cancelbutton;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *savebutton;
@property (nonatomic, retain) IBOutlet UITextField *newname;
@property (nonatomic, retain) IBOutlet UITextField *newemailid;
@property (nonatomic, retain) IBOutlet UITextField *newcontactno;

-(IBAction) cancel:(id) sender;
-(IBAction) save:(id) sender;

@end

@protocol AddCustomerControllerDelegate
-(void) addcustomerController:(AddCustomerController *)controller selectedsave:(BOOL) save;
@end